(ELF): Handle this parameter.
authorRichard M. Stallman <rms@gnu.org>
Thu, 4 Mar 1993 19:50:30 +0000 (19:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 4 Mar 1993 19:50:30 +0000 (19:50 +0000)
[! COFF] (UNEXEC, USG_SHARED_LIBRARIES): New definitions.
(_BSD_TTY_FLAVOR): Don't define if already defined.
(C_COMPILER, LINKER, MAKE_COMMAND): New definitions.

src/s/dgux.h

index e85c24219b6414d1904d18ef7370fb0a6e036428..f42a2a83d79be836fb5b5fd43981daa6142e5ffc 100644 (file)
@@ -116,9 +116,33 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define subprocesses
 
 /* If your system uses COFF (Common Object File Format) then define the
-   preprocessor symbol "COFF". */
+   preprocessor symbol "COFF".
 
+   DGUX can use either COFF or ELF.  To use ELF format, define ELF.  */
+
+#ifndef ELF
 #define COFF
+#endif
+
+#ifndef COFF /* People will probably find this apparently unreliable
+               till the NFS dumping bug is fixed.  */
+
+/* It is possible to undump to ELF with DG/UX 5.4, but for revisions below
+   5.4.1 the undump MUST be done on a local file system, or the kernel will
+   panic.  ELF executables have the advantage of using shared libraries,
+   while COFF executables will still work on 4.2x systems. */
+
+#define UNEXEC unexelf.o
+
+/* This makes sure that all segments in the executable are undumped,
+   not just text, data, and bss.  In the case of Mxdb and shared
+   libraries, additional information is stored in other sections.
+   It does not hurt to have this defined if you don't use Mxdb or
+   shared libraries.  In fact, it makes no difference. */
+
+/* Necessary for shared libraries and Mxdb debugging information. */
+#define USG_SHARED_LIBRARIES
+#endif
 
 /* define MAIL_USE_FLOCK if the mailer uses flock
    to interlock access to /usr/spool/mail/$USER.
@@ -201,8 +225,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  */
 
 #ifndef HAVE_TERMIO
+#ifndef _BSD_TTY_FLAVOR                /* Already defined, in dgux 4.30.  */
 #define _BSD_TTY_FLAVOR
 #endif
+#endif
 
 /*
  *     Use a Berkeley style sys/wait.h.
@@ -252,3 +278,28 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* force gcc to be used */
 CC=gcc
 #endif /* not MAKING_MAKEFILE */
+\f
+/* definitions for xmakefile production */
+#ifdef COFF
+#define C_COMPILER \
+  TARGET_BINARY_INTERFACE=m88kdguxcoff gcc -traditional
+#define LINKER \
+  TARGET_BINARY_INTERFACE=m88kdguxcoff gcc -nostdlib
+
+#define MAKE_COMMAND \
+  TARGET_BINARY_INTERFACE=m88kdguxcoff make
+
+#else /* not COFF */
+
+#define C_COMPILER \
+  TARGET_BINARY_INTERFACE=m88kdguxelf gcc -traditional
+#define LINKER \
+  TARGET_BINARY_INTERFACE=m88kdguxelf gcc -nostdlib
+
+#define MAKE_COMMAND \
+  TARGET_BINARY_INTERFACE=m88kdguxelf make
+
+#endif /* COFF */